翻訳と辞書
Words near each other
・ Printer's devil
・ Printer's hat
・ Printer's key
・ Printer's mark
・ Printer's Measure
・ Printer's Row, Chicago
・ Printer's sample stamp
・ Printer, Kentucky
・ Printer-friendly
・ Printers Devil, Bristol
・ Printers Inc. Bookstore
・ Printers Row Lit Fest
・ Printers' Ink
・ Printers' International Specimen Exchange
・ Printex Ghana
Printf (Unix)
・ Printf format string
・ Printf("shiver in eternal darkness/n");
・ Printfection
・ Printful
・ Printing
・ Printing Act of 1895
・ Printing and Kindred Industries Union
・ Printing and Numerical Registering Co v Sampson
・ Printing and the Mind of Man
・ Printing and writing paper
・ Printing Historical Society
・ Printing House Row District
・ Printing House Square
・ Printing in Goa


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Printf (Unix) : ウィキペディア英語版
Printf (Unix)

printf ("print formatted") is a shell builtin (and utility program) that formats and prints data. It accepts a format string, which specifies methods for formatting items, and a list of items to be formatted. Named for the intention of printing to a printer, it actually outputs to stdout. Characters in the format string are copied to the output or, if a % is encountered, are used to format an item. In addition to the standard formats, %b causes printf to expand backslash escape sequences (for example \n for newline) and %q outputs an item that can be used as shell input. The ''format string'' is reused if there are more items than format specs. Unused format specs provide a zero value or null string.
See printf function for more details.
==Examples==


$ for NUMBER in 4 6 8 9 10
> do printf " >> %03d %d<< \n" $NUMBER $RANDOM
> done
>> 004 26305<<
>> 006 6687<<
>> 008 20170<<
>> 009 28322<<
>> 010 4400<<

This will print a directory listing, emulating 'ls
*'

printf "%s\n"
*


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Printf (Unix)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.